/*
 * @Descripttion:
 * @version:
 * @Author: 穆宏宇
 * @Date: 2023-11-09 11:14:34
 * @LastEditors: 穆宏宇
 * @LastEditTime: 2023-11-09 11:14:34
 */

import api from './index'


//工单产品

// 查询工单产品列表
export const selProductList = (data) => {
	const url = `/gongdan/work-order/product/sel?pageNum=`+data.pageNum+'&pageSize='+data.pageSize
	return api.post(url, data)
}

// 新增工单产品列表
export const insertProduct  = (data) => {
	const url = `/gongdan/work-order/product/insert`
	return api.post(url, data)
}

// 修改工单产品列表
export const updateProduct = (data) => {
	const url = `/gongdan/work-order/product/update`
	return api.post(url, data)
}

// 删除工单产品列表
export const delProduct = (data) => {
	const url = `/gongdan/work-order/product/delete/`
	return api.post(url, data)
}

//工单项目

// 查询工单项目列表
export const selProjectList = (data) => {
	const url = `/gongdan/work-order/project/sel?pageNum=`+data.pageNum+'&pageSize='+data.pageSize
	return api.post(url, data)
}

// 新增工单项目列表
export const insertProject = (data) => {
	const url = `/gongdan/work-order/project/insert`
	return api.post(url, data)
}

// 修改工单项目列表
export const updateProject = (data) => {
	const url = `/gongdan/work-order/project/update`
	return api.post(url, data)
}

// 删除工单项目列表
export const delProject = (data) => {
	const url = `/gongdan/work-order/project/delete/`
	return api.post(url, data)
}


//工单任务

// 新增工单任务列表
export const insertMission = (data) => {
	const url = `/gongdan/work-order/mission/insert`
	return api.post(url, data)
}
// 查询工单任务列表
export const selMission = (data) => {
	const url = `/gongdan/work-order/mission/sel`
	return api.post(url, data)
}

// 修改工单任务列表
export const updateMission = (data) => {
	const url = `/gongdan/work-order/mission/update`
	return api.post(url, data)
}
//工单功能点

// 新增工单功能点列表
export const insertFunc= (data) => {
	const url = `/gongdan/work-order/func/insert`
	return api.post(url, data)
}
//查询功能点
export const selFunc= (data) => {
	const url = `/gongdan/work-order/func/sel`
	return api.post(url, data)
}


//查询用户
export const selectUser = (data) => {
	const url = `/gongdan/work-order/work/selectUser`
	return api.post(url, data)
}

//查询任务用户
export const selectMissionUser = (data) => {
	const url = `/gongdan/work-order/work/selectMissionUser`
	return api.post(url, data)
}



//查询字典（根据字典类型）
export const selectDictionary = (data) => {
	const url = `/gongdan/work-order/work/selectDictionary`
	return api.post(url, data)
}

//文档
//新增文档
export const insertProjectFile = (data) => {
	const url = `/gongdan/work-order/projectFile/insert`
	return api.post(url, data)
}

//删除文档
export const delProjectFile = (data) => {
	debugger
	const url = `/gongdan/work-order/projectFile/delete/`
	return api.post(url, data)
}

//查询文档
export const selProjectFile = (data) => {
	const url = `/gongdan/work-order/projectFile/sel`
	return api.post(url, data)
}


//查询项目人员
export const selprojectUser = (data) => {
	const url = `/gongdan/work-order/projectUser/sel`
	return api.post(url, data)
}

//查询项目工单打印数据
export const selWorkOrderPrint = (data) => {
	const url = `/gongdan/work-order/workOrderPrint/sel`
	return api.post(url, data)
}


//查询工单用户列表
export const selUserList = (data) => {
	const url = `/gongdan/work-order/user/list?pageNum=`+data.pageNum+"&pageSize="+data.pageSize
	return api.post(url, data)
}


//角色列表
export const selPostList = (data) => {
	const url = `/gongdan/work-order/work/selectPost`
	return api.post(url, data)
}

//查询商城用户列表
export const selShopUserList = (data) => {
	const url = `/special/dictionary/users/selectUserInfoByUserId?pageNum=`+data.pageNum+'&pageSize='+data.pageSize
	return api.post(url, data)
}

//插入用户
export const insertUser = (data) => {
	const url = `/gongdan/work-order/user/addUser`
	return api.post(url,data)
}
//更新用户
export const updateUser = (data) => {
	const url = `/gongdan/work-order/user/updateUser`
	return api.post(url,data)
}



//查询项目日志
export const selProjectLog = (data) => {
	const url = `/gongdan/work-order/projectLog/sel`
	return api.post(url, data)
}


//新增项目日志
export const insertProjectLog = (data) => {
	const url = `/gongdan/work-order/projectLog/insert`
	return api.post(url, data)
}


//审批流配置列表
export const selActivitiList = (data) => {
	const url = `/gongdan/work-order/wActiviti/sel`
	return api.post(url, data)
}
//新增审批流
export const insertActiviti = (data) => {
	const url = `/gongdan/work-order/wActiviti/insert`
	return api.post(url, data)
}
//修改审批流
export const updateActiviti = (data) => {
	const url = `/gongdan/work-order/wActiviti/update`
	return api.post(url, data)
}




//审批待办列表
export const selTaskList = (data) => {
	const url = `/gongdan/work-order/wTask/sel?pageNum=`+data.pageNum+'&pageSize='+data.pageSize
	return api.post(url, data)
}
//新增待办
export const insertTask = (data) => {
	const url = `/gongdan/work-order/wTask/insert`
	return api.post(url, data)
}
//修改待办
export const updateTask = (data) => {
	const url = `/gongdan/work-order/wTask/update`
	return api.post(url, data)
}


//审批已办列表
export const selDoneList = (data) => {
	const url = `/gongdan/work-order/wDone/sel?pageNum=`+data.pageNum+'&pageSize='+data.pageSize
	return api.post(url, data)
}


//审批列表
export const selWorkOrderActivitiList = (data) => {
	const url = `/gongdan/work-order/workOrderActiviti/sel`
	return api.post(url, data)
}